$(function(){
    $.ajax({
            type : "get",
            url : "http://chst.vip:1234/api/getsitenav"
        }).then((res)=>{
        var arr = res.result;
        let html = ''
        arr.forEach(item =>{
            html += `
            <li>
              <a href="${item.navHref}">
                <img src="${item.navImg}" alt="">
                <span>${item.navTitle}</span>
              </a>
            </li>
            `
        })
        $('.info').html(html)
       })
    })